package mytest.wd2;

import cn.hutool.core.util.IdUtil;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Test11 {

    public static void main(String[] args) {
        String yyyyMMddHHmmss = String.format("%s%s", new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()),
                IdUtil.getSnowflakeNextId());
        System.out.printf("%s%s%n", new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()),
                IdUtil.getSnowflakeNextId());

    }

}
